﻿@model Web.Models.Taoke.TaokeItemModel
@{
    Layout = "~/Views/Shared/_TaokeRoot.cshtml";
    //title
    Html.AddTitleParts(Model.Title);
}

<div id="main">
    <div class="index-nav">
        <ul class="crumbs">
            <li class="list-item"><a href="@Url.RouteUrl("Home")" title="满衣屋首页">首页</a></li>
            <li class="list-item"><a href="@Url.RouteUrl("ItemList")?categoryId=@Model.ItemModel.Cid" title="">@Model.ItemModel.CategoryName</a></li>
            <li class="list-item">@Model.Title</li>
        </ul>
    </div>
    <div class="content">
        <div class="baseInfo">
            <div class="tb-box" id="detail">
                <div class="tb-detail-bd tb-clear">
                    <div class="tb-summary tb-clear">
                        <div class="tb-property">
                            <div class="tb-wrap tb-wrap-newshop">
                                <div class="title">
                                    <h1>@Model.Title</h1>
                                </div>
                                <ul class="tb-meta">
                                    <li class="tb-detail-price tb-clearfix" id="J_StrPriceModBox"><span>价格：</span> <strong
                                        id="J_StrPrice">@Model.ItemModel.Price</strong>元 </li>


                                    <li>宝贝运费：
                                        @if (Model.ItemModel.FreightPayer == "seller")
                                        { 
                                            <span id="freight_payer">
                                                卖家承担
                                            </span>
                                        }
                                        else
                                        {
                                            <span id="freight_payer">
                                                平邮费用:@Model.ItemModel.PostFee&nbsp;&nbsp;
                                                快递费用:@Model.ItemModel.ExpressFee&nbsp;&nbsp;
                                                EMS费用:@Model.ItemModel.EmsFee
                                            </span>
                                        }
                                             </li>
                                    <li><span>卖家信用：</span>
                                        <img src="/content/images/level/@Html.Raw("level"+@Model.SellerCreditScore+".gif")" /></li>
                                    <li><span class="num">库存数量：</span><b>@Model.ItemModel.Num</b>件</li>
                                    <li class="tb-sold-out"><span>最近售出：</span><em>@Model.ItemModel.Volume</em>件 </li>
                                    <li><span>上架时间：<span id="list_time">@Model.ItemModel.ListTime</span></span></li>
                                    <li><span>下架时间：<span id="delist_time">@Model.ItemModel.DelistTime</span></span></li>
                                </ul>
                                <div class="go_buyb">
                                    <a onclick="gotourl('@Model.ClickUrl'); return false;" href="javascript:;">
                                        <img src="/Content/images/buy.gif" alt="点击到淘宝购买" /></a> <a onclick="gotourl('@Model.ShopClickUrl'); return false;"
                            href="javascript:;" title="点击查看淘宝店铺">
                                            <img src="/Content/images/shop.gif" alt="点击查看淘宝店铺" /></a>
                                </div>
                            </div>
                        </div>
                        <div class="tb-gallery">
                            <div class="tb-booth tb-pic tb-s310">
                                <a onclick="gotourl('@Model.ClickUrl'); return false;" href="javascript:;">
                                    <img data-haszoom="700" src="@Model.PicUrl" id="J_ImgBooth" alt="@Model.Title" />
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="areaSub">
            @Html.Action("HotList", new { categoryId = Model.ItemModel.Cid })
            @Html.Action("CouponList", new { categoryId = Model.ItemModel.Cid })
        </div>
        <div class="areaMain">

            <div class="titems_info">
                <div class="ti_box">
                    <div class="ti">
                        <h1>商品详细信息 - @Model.Title</h1>
                    </div>
                </div>
                <!-- 商品详细参数开始 -->
                <div>
                    @Html.Raw(@Model.ItemModel.Desc)

                </div>
                <!-- 立刻购买开始 -->
                <div class="go_buyb">
                    <a onclick="gotourl('@Model.ClickUrl'); return false;" href="javascript:;" title="点击到淘宝购买">
                        <img src="/Content/images/buy.gif" alt="点击到淘宝购买" /></a> <a onclick="gotourl('@Model.ShopClickUrl'); return false;"
            href="javascript:;" title="点击查看淘宝店铺">
                            <img src="/Content/images/shop.gif" alt="点击查看淘宝店铺" /></a>
                </div>
                <!-- 立刻购买结束 -->
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function gotourl(url) {
        window.location.href = url;
    }
</script>

